package edu.sctu.zcy.month201505.day20150510;

/**
 * Created by user24 on 2015/5/10.
 */
public class RunnableDemo implements Runnable {

    public String name;

    public void getNameTwo(String name) {
        this.name = name;
    }

    public void run(){
        System.out.println("线程启动："+this.name);
        for (int i = 0; i < 10; i++) {
            System.out.println(this.name+"运行：i="+i);
        }
        System.out.println("线程结束："+this.name);
    }
}
